package com.cassio.guarapari.dao;

import java.util.List;

import javax.persistence.Query;

import com.cassio.guarapari.entity.Inquilino;


public class InquilinoDAO extends GenericDAO {
	
	@SuppressWarnings("unchecked")
	public List<Inquilino> findByNome(String nome){
		Query q = getEm().createNamedQuery("Inquilino.findByNome");
		q.setParameter("nome", nome);
		return q.getResultList();
	}
}
